<!DOCTYPE html>
<html id="replace-style" lang="zh" xmlns:th="http://www.w3.org/1999/xhtml">
<head>
	<meta charset="UTF-8" />
	<meta name="viewport" content="width=device-width, initial-scale=1.0" />
	<meta http-equiv="X-UA-Compatible" content="ie=edge" />
	<link rel="icon" type="image/x-icon" href="/favicon.ico" th:href="@{/favicon.ico}" >
	<title>区域管理</title>
		
</head>
<body>
<!--头部-->
<header th:replace="common/head" >
</header> 
<!-- 页面指向 -->
<div class="page-point bg-white">
	<ul>
		
		<li>工厂模型</li>
		<li>区域管理</li>
	</ul>
</div>
<!-- 菜单树 -->
<div th:replace="common/left" > 
</div>




<!--主体内容-->
<div class="page-container">

	<div class="container-fluid mb-20 clearfix">
		<div class="col-md-12">
			<h2 class="page-section-title">查询条件</h2>
		</div>
	</div>

	<div class="container-fluid query-frame-wrap mb-10 clearfix condition-query">
		<div class="col-lg-3">
			<div class="query-frame">
				<label>区域编码</label>
				<input type="text"  class="form-control queryArea" id="areaCode"/>
			</div>
		</div>
		<div class="col-lg-3">
			<div class="query-frame">
				<label>区域名称</label>
				<input type="text"  class="form-control queryArea" id="areaName"/>
			</div>
		</div>
		<div class="col-lg-3 col-lg-offset-3">
			<div class="query-frame query-button">
				<img id="queryArea" th:src="@{/image/search.png}"/>
				<img id="queryAreaReset" class="reset" th:src="@{/image/rest.png}"/>
			</div>
		</div>
	</div>

	<div class="container-fluid mb-20 clearfix">
		<div class="col-md-12 rlt">
			<h2 class="page-section-title">区域列表</h2>
			<ul class="table-tool">
			    <li data-toggle="modal"  class="addArea" id="addArea">
			        <span class="icon-list_add" aria-hidden="true"></span>
			        <label>新增</label>
			    </li>
			    <li  class="updateArea" id="updateArea">
			        <span class="icon-list_xiugai" aria-hidden="true"></span>
			        <label>修改</label>
			    </li>
			    <li id="delArea" class="delArea">
			        <span class="icon-list_shanchu" aria-hidden="true"></span>
			        <label >删除</label>
			    </li>
			    <li id="refreshArea" class="refresh">
			        <span class="icon-list_shuaxin" aria-hidden="true"></span>
			        <label>刷新</label>
			    </li>
			</ul>
		</div>
	</div>

	<div class="container-fluid table-container">
		<table id="AreaTable"  cellspacing="" cellpadding="">
						
		</table>
	</div>
</div>

<div class="modal fade modelForm" id="myModal" tabindex="-1" role="dialog" data-backdrop="static" data-keyboard="false">
  <div class="modal-dialog" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
        <h4 class="modal-title title">新增</h4>
      </div>
      <div class="modal-body">
		    <div class="row">
		        <div class="col-lg-12">
		            <form id="defaultForm" method="post" class="form-horizontal AreaForm" action="">
		                <div class="form-group">
		                    <label class="col-lg-3 control-label form-required form-required-4">区域编码</label>
		                    <div class="col-lg-7">
		                    	<input type="text" class="form-control" name="areaCode" value="" />
		                    </div>
		                </div>
		                <div class="form-group">
		                    <label class="col-lg-3 control-label form-required form-required-4">区域名称</label>
		                    <div class="col-lg-7">
		                    	<input type="text" class="form-control" name="areaName" value="" />
		                    </div>
		                </div>
		                <div class="form-group">
		                    <label class="col-lg-3 control-label form-required form-required-3">标识符</label>
		                    <div class="col-lg-7">
		                    	<input type="text" class="form-control" name="identifier" value="" />
		                    </div>
		                </div>

		                <div class="form-group">
		                    <label class="col-lg-3 control-label form-required form-required-4">所属厂区</label>
		                    <div class="col-lg-7"> 
		                    	<select name="factoryId" class="form-control factory">
		                    		<option value="">请选择</option>
		                    	</select>
		                    </div>
		                </div>
   		                <div class="form-group">
		                    <label class="col-lg-3 control-label">备注</label>
		                    <div class="col-lg-7">
		                    	<input type="text" class="form-control" name="remark" value="" />
		                    </div>
		                </div>			            	                
             			<!-- 隐藏唯一id -->
						<input type="hidden" name="pkId" id="pkId" value="" />
		            </form>
		        </div>
		    </div>
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-primary yes">保存</button>
        <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
      </div>
    </div>
  </div>
</div>




<div th:replace="common/foot" > 
</div>

<script th:src="@{/js/factoryModel/area.js}"type="text/javascript"></script>



</body>
</html>